<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="com.fredck.FCKeditor.*"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<HTML>
<HEAD><TITLE>编辑新闻</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.c{text-decoration:none;font-size:10 pt;color:#000000}
.d{text-decoration:none;font-size:9 pt;color:#006699}
-->
</STYLE>
<link href="/css/FONT.CSS" rel="stylesheet" type="text/css">
<style type="text/css"> 
	@import url(htmlarea/htmlarea.css); 
	html, body { font-family: Verdana,sans-serif; background-color: #FFFFFF; color: #000; }
	a:link, a:visited { color: #00f; }
	a:hover { color: #048; }
	a:active { color: #f00; }
	textarea { background-color: #DDEEff; border: 1px solid #00000f; }
</style>
<link rel="stylesheet" type="text/css" href="/css/private.css">
<script language=javascript src="/js/private.js"></script>
<script type="text/javascript" src="fckeditor.js"></script>
<script type="text/javascript" src="${webpath}/dwr/interface/DwrClass.js"></script>
<script type="text/javascript" src="${webpath}/dwr/engine.js"></script>
<script type="text/javascript" src="${webpath}/dwr/util.js"></script>
<script language="javascript">
            function showLeibeiList(showid,leibieId,temp){
				var temp1=Number(temp)+1;
				for(var i=temp1;i<10;i++)
				{
					if(document.getElementById("selectName"+temp1)!=null)
					{
						document.getElementById("selectName"+temp1).innerHTML="";
					}
				}
                DwrClass.findNewsLeibie(showid,leibieId,temp,function(data){
                    document.getElementById("leibie").value=leibieId;
					DWRUtil.setValue(showid,data,{ escapeHtml:false });
                    
                });
            }
</script>
</head>
<body >
<TABLE ALIGN=CENTER  WIDTH="100%" BORDER="0" cellpadding=6 cellspacing=0>
<TR>
    <TD ALIGN="CENTER" valign="top" height="320"> 

<form name="form1" id="theForm" method="post" enctype="multipart/form-data" action="${webpath}/admin/news/Articles.do?action=newsAdd" onSubmit="">
        <table align="center" border="1" width="100%" cellspacing=0 cellpadding=0 bgcolor="#FFFFFF">
          <tr align="left"> 
            <td height="26"> 
              <table width="100%" bgcolor="#6699CC" border=0 cellspacing=1 cellpadding=5>
              <tr> 
                  <td align=CENTER height="22"> <font color="WHITE" style="font-size:10.5pt;color:white"> 
                    添加新闻</font>&nbsp;&nbsp;<font style="font-size:10.5pt;color:FF0000">(*) 为必填项</font>					</td>
              </tr>
            </table>
          </td>
        </tr>
          <tr valign="top"> 
            <td height="379"> 
              <table width="100%" bgcolor="#FFFFFF" border=1 cellspacing=0 cellpadding=0 bordercolordark="#EEEEEE" bordercolorlight="#000000"> 
				<tr> 
                  <td align="CENTER" width="254"><font style="font-size:9pt;color:#000000">中文标题</font> <font style="color:FF0000">*</font></td>
                  <td align="LEFT" colspan="3"> &nbsp; 
				  <textarea name="title" cols="80" rows="3" validator=NoBlank></textarea>                  </td>
                </tr>
                <tr> 
                  <td align="CENTER" width="254"><font style="font-size:9pt;color:#000000">关键字</font></td>
                  <td align="LEFT" colspan="3" valign="top"> &nbsp; 
                    <textarea name="keyword" cols="50" rows="3" validator=NoBlank></textarea><br> &nbsp; 
                    <font style="color:FF0000;font-size:12px">注：关键字可以是多个，之间用逗号分开。（例如：安全，生产）</font>
				</td>
                </tr>				
				<tr>
				  <td align="center" width=254><font style="font-size:9pt;color:#000000">内容概要</font></td>
				  <td align="left" colspan="3"> &nbsp;
			    <textarea name="intr" cols="80" rows="10"></textarea></td>
				</tr>
				<tr>
				  <td align="center" width=254><font style="font-size:9pt;color:#000000">新闻正文</font></td>
				  <td align="left" colspan="3"> &nbsp;
			    <% 
			FCKeditor oFCKeditor ; 
			oFCKeditor = new FCKeditor( request, "content" ) ; 
			oFCKeditor.setBasePath( "/myproject/" ) ;
			oFCKeditor.setHeight("500");
			oFCKeditor.setValue( " " ); 
			out.println( oFCKeditor.create() ) ;
		%>
				
				</td>
				</tr>
				<tr>
				  <td align="center" width=254><font style="font-size:9pt;color:#000000">跳转地址</font></td>
				  <td align="left" colspan="3"> &nbsp;
				<input name="linkurl" type="text" size="60" value="" />
				<input type="hidden" name="leibie" id="leibie" value="<%=request.getParameter("articlesleibieID")%>" />
				</td>				
				</tr>		
				<!--<tr> 
				  &nbsp;
				  <span id="selectName0" style="display:none">
					<script type="text/javascript">showLeibeiList('selectName0','0','0');</script>
				</span>
				<span id="selectName1">
				</span>
				<span id="selectName2">
				</span>
				<span id="selectName3">
				</span>
				<span id="selectName4">
				</span>
				<span id="selectName5">
				</span>
				<span id="selectName6">
				</span>
				<span id="selectName7">
				</span>
				<span id="selectName8">
				</span>
				<span id="selectName9">
				</span>
				  
				  </td>
                </tr>	-->
				<tr> 
                  <td align="CENTER" width="254"><font style="font-size:9pt;color:#000000" size="2">新闻图片</font></td>
                  <td colspan="3" align="LEFT" class="myfont"> <font size="2">&nbsp;
				  <input type="file" name="imgUrl">
				  <input type="hidden" name="author" value="<%=session.getAttribute("uid")%>" />
				  <input type="hidden" name="page" value="<%=request.getParameter("page")%>" />
				  <input type="hidden" name="articlesleibieID" value="<%=request.getParameter("articlesleibieID")%>">
				  </font></td>
                </tr>
				<tr>
					<td align="center"><font style="font-size:9pt;color:#000000" size="2">推荐</font></td>
					<td colspan="3">
						&nbsp;&nbsp;<select name="recommend">
							<option value="0" selected="selected">不推荐</option>
							<option value="1">推荐到首页</option>
							<option value="2">推荐到栏目二级页面</option>
							<option value="3">推荐到导航栏下面</option>
						</select>
					</td>
				</tr>
				<tr> 
                  <td align="CENTER" colspan="4" height="45"> 
                    <input type="submit" name="Submit" class="c" value=" 确 认 " >
                    <input type="reset" name="Reset" class="c" value=" 重 置 ">
					<input type="button" value=" 返回 " class="c" name="Button3" onClick="javascript:history.go(-1);">
					</td>
                </tr>
              </table>
          </td>
        </tr>
      </table>    
</form>
<TR>
<TD >&nbsp; 
</TD>
</TR>
</TABLE>
</BODY>
</HTML>